package com.bike.modules.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel(value="bike_order_comment")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "bike_order_comment")
public class OrderComment implements Serializable {
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value="")
    private Integer id;

    @TableField(value = "order_no")
    @ApiModelProperty(value="")
    private Long orderNo;

    @TableField(value = "user_id")
    @ApiModelProperty(value="")
    private Integer userId;

    @TableField(value = "content")
    @ApiModelProperty(value="")
    private String content;

    @TableField(value = "images")
    @ApiModelProperty(value="")
    private String images;

    @TableField(value = "create_time")
    @ApiModelProperty(value="")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date createTime;

    /**
     * 删除标记
     */
    @TableField(value = "del_flag")
    @ApiModelProperty(value="删除标记")
    private Boolean delFlag;

    /**
     * 商家回复内容
     */
    @TableField(value = "reply")
    @ApiModelProperty(value="商家回复内容")
    private String reply;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_ORDER_NO = "order_no";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_CONTENT = "content";

    public static final String COL_IMAGES = "images";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_DEL_FLAG = "del_flag";

    public static final String COL_REPLY = "reply";
}